// 
// Decompiled by Procyon v0.5.36
// 

package com.orange.boot.encyclopedia.controller;

import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.orange.boot.encyclopedia.entity.CitrusBaike;
import org.springframework.web.bind.annotation.GetMapping;
import com.orange.boot.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import com.orange.boot.encyclopedia.service.CitrusBaikeService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping({"/dev3/orangeBaiKe"})
@Api(
        tags = {"柑橘百科板块"}
)
public class CitrusBaikeController {
    @Autowired
    CitrusBaikeService citrusBaikeService;

    public CitrusBaikeController() {
    }

    @GetMapping({"/orange"})
    public R getOrangeBaiKe() {
        return this.citrusBaikeService.getOrangeBaiKe();
    }

    @PutMapping({"/orange/update"})
    public R updateOrangeBaiKe(@RequestBody CitrusBaike citrus) {
        return this.citrusBaikeService.UpdateOrangeBaiKe(citrus);
    }
}